package com.qf.osmgrass.grass.controller;


import com.qf.common.core.annotation.NoLogin;
import com.qf.common.core.common.R;
import com.qf.osmgrass.grass.service.GrassLikeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/article/grass")
public class GrassLikeController {
    @Resource
    private GrassLikeService grassLikeService;
    @GetMapping("/like")
    public R like(Integer articleId){
        grassLikeService.like(articleId);
        return R.ok();
    }
}
